import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router);

export default new Router({
  mode: 'hash',
  // base: process.env.VUE_APP_MOCK_URL
  routes: [
    {
      path: '/',
      redirect: '/index'
    },
    {
        path: '/login',
        name: 'login',
        component: () => import('./views/Login')
    },
    {
      path: '/index',
      name: 'index',
      component: () => import('./views/Index')
    },
    {
      path: '/tourist/flow',
      name: 'touristFlow',
      component: () => import('./views/TouristFlow')
    },
    {
      path: '/scenic/spot/heating',
      name: 'scenicSpotHeating',
      component: () => import('./views/ScenicSpotHeating')
    },
    {
      path: '/tourist/style',
      name: 'touristStyle',
      component: () => import('./views/TouristStyle')
    },
    {
      path: '/business/interests',
      name: 'businessInterests',
      component: () => import('./views/BusinessInterests')
    },
    {
      path: '/feed/back', // 意见反馈
      name: 'feedBack',
      component: () => import('./views/FeedBack')
    },
    {
      path: '/change/password', // 密码修改
      name: 'changePassword',
      component: () => import('./views/ChangePassword')
    },
    {
      path: '/pdf/list', // pdf
      name: 'pdfList',
      component: () => import('./views/downPdf')
    },
    {
      path: '/pdf/detail', // pdf详情
      name: 'pdfDetail',
      component: () => import('./views/pdfDetailCopy')
    }
  ]
})

